Method and apparatus for selecting a preferential font

ABSTRACT

An outputting apparatus such as a laser beam printer comprises a memory to store designation information to designate a selection-impossible font from a plurality of fonts and a selector to select a font which is most adaptive from the fonts other than the selection instructed font in accordance with an input of selection instruction information to instruct so as to select the selection-impossible font that is designated by the designation information stored in the memory. The plurality of fonts include internal fonts provided in the apparatus and fonts which are supplied from the outside.

BACKGROUND OF THE INVENTION

[0001] 1. Field of the Invention

[0002] The present invention relates to outputting apparatus and method of a printer, a display (CRT, LCD), or the like in which information supplied from the outside is analyzed and the information is transformed into a visible image form on the basis of the result of the analysis and is outputted.

[0003] 2. Related Background Art

[0004] Hitherto, in an outputting apparatus, since a font is selected on the basis of information regarding the font selection supplied from the outside, in the case where the font was newly added without changing the information supplied from the outside, the added font cannot be selected unless the information regarding the font selection in the information supplied from the outside is changed, so that there is a problem such that even when the number of kinds of fonts increases, they cannot be effectively used.

SUMMARY OF THE INVENTION

[0005] The present invention is made in consideration of the above circumstances and it is an object of the invention to provide outputting apparatus and method which can select a newly added font without changing information regarding the font selection in information which is supplied from the outside.

[0006] To solve the above problem, according to the present invention, there is provided an outputting apparatus comprising: memory means for storing designation information to designate a selection-impossible font from a plurality of fonts; and selecting means for selecting the most suitable font from the fonts other than the selected and instructed font in accordance with an input of selection instructing information to instruct so as to select the selection-impossible font which is designated by the designation information stored in the memory means.

[0007] The above plurality of fonts include fonts provided in the apparatus and fonts which are supplied from the outside.

[0008] The designation information is supplied from the outside.

[0009] The selection instruction information is supplied from the outside.

[0010] The selecting means has comparing means for comparing attribute information of the font instructed by the selection instruction information and attribute information of the fonts other than such a font and selects a font having the attribute information that is nearest to the attribute information of the font instructed by the selection instruction information from the fonts other than the font instructed by the selection instruction information.

[0011] To solve the above problem, according to the present invention, there is provided an outputting method whereby designation information to designate a selection-impossible font from a plurality of fonts is stored and the most suitable font is selected from the fonts other than the selected and instructed font in accordance with an input of selection instruction information to instruct so as to select the selection-impossible font which is designated by the designation information stored.

[0012] The above plurality of fonts include fonts which are provided in the apparatus and fonts which are supplied from the outside.

[0013] The designation information is supplied from the outside.

[0014] The selection instruction information is supplied from the outside.

[0015] In the selection of the font, the attribute information of the font instructed by the selection instruction information is compared with the attribute information of the fonts other than such a font, and the font having the attribute information that is nearest to the attribute information of the font instructed by the selection instruction information is selected from the fonts other than the font instructed by the selection instruction information.

[0016] According to the present invention as mentioned above, even in the case where the data supplied from the external apparatus such as a host computer or the like cannot select the newly added font, an output image can immediately be outputted by using the newly added font.

BRIEF DESCRIPTION OF THE DRAWINGS

[0017]FIG. 1 is a block diagram showing a fundamental construction of an outputting apparatus according to the first embodiment of the present invention;

[0018]FIG. 2 is a flowchart showing a control procedure in the outputting apparatus of FIG. 1;

[0019]FIG. 3 is a block diagram showing a fundamental construction of an outputting apparatus according to the second embodiment of the present invention;

[0020]FIG. 4 is a flowchart showing a control procedure in the outputting apparatus of FIG. 3;

[0021]FIG. 5 is a block diagram showing a fundamental construction of an outputting apparatus according to the third embodiment of the present invention;

[0022]FIG. 6 is a flowchart showing a control procedure in the outputting apparatus of FIG. 5;

[0023]FIG. 7 shows an example of a font table in the third embodiment;

[0024]FIG. 8 is a flowchart showing a control procedure in the outputting apparatus of FIG. 5;

[0025]FIG. 9 is a flowchart showing a control procedure in the outputting apparatus of FIG. 5;

[0026]FIG. 10 shows an example of an attribute table in the third embodiment; and

[0027]FIG. 11 is a cross sectional view showing an internal structure of an outputting apparatus to which the present invention can be applied.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0028] Prior to explaining a construction of the present invention, a construction of a laser beam printer (LBP) which is suitable when an embodiment is applied will be first described with reference to FIG. 11.

[0029]FIG. 11 is a cross sectional view showing an internal structure of the laser beam printer (hereinafter, abbreviated to LBP) of an embodiment. The LBP can receive character pattern data or the like and print on a recording paper.

[0030] In the diagram, reference numeral 740 denotes an LBP main body which forms an image onto the recording paper as a recording medium on the basis of a character pattern or the like which is supplied; 700 an operation panel on which switches for operations, an LED display, and the like are arranged; and 701 a printer control unit for controlling the whole LBP 740 and analyzing character pattern information or the like. The printer control unit 701 mainly converts the character pattern information into the video signal and supplies to a laser driver 702.

[0031] The laser driver 702 is a circuit to drive a semiconductor laser 703 and ON/OFF switches a laser beam 704 which is emitted from the semiconductor laser 703 in accordance with an input video signal. The laser beam 704 is deviated to the right and left by a rotary polygon mirror 705 and scans on an electrostatic drum 706, thereby forming an electrostatic latent image of a character pattern onto the drum 706. The latent image is developed by a developing unit 707 around the drum 706 and, after that, the developed image is transferred onto the recording paper. A cut sheet is used as a recording paper. The cut sheet recording papers are enclosed in a sheet cassette 708 attached in the LBP 740. The paper is conveyed into the apparatus by a paper feed roller 709 and conveying rollers 710 and 711 and fed to the drum 706.

[0032] A control portion in the printer with the above structure will now be described in more detail.

[0033] The invention is not limited to the printer with the above construction but can be also applied to other printers such as LED printer, ink jet printer, and the like. A display apparatus such as CRT, LCD, or the like can be also used as an outputting apparatus.

[0034] (First Embodiment)

[0035]FIG. 1 is a block diagram showing a practical construction of the printer control unit 701. In the diagram, reference numeral 2 denotes a host computer which generates print information comprising print data, control code, and the like to the printer control unit 701. Reference numeral 4 denotes an input buffer for receiving the print information from the host computer 2 and storing; 5 a CPU to control the whole printer control unit 701; 5 a an ROM in which operation processing procedures (programs regarding flowcharts shown in FIGS. 2 and 4 and the like) of the CPU 5 have been stored; 5 b an RAM which is used as a work area or the like of the CPU 5; 7 a page buffer memory to store the received data every page; and 8 a bit map memory to store an output image of one page. Each of the input buffer 4, page buffer memory 7, and bit map memory 8 is also constructed by an RAM. Reference numeral 9 denotes a printer engine to actually print the output image and 6 indicates a font memory to store various kinds of information of fonts. The font memory 6 is constructed by an ROM. Reference numeral 3 denotes a recording medium such as a paper or the like to record the result of the printing, and 700 indicates the operation panel which is used for the user to select a desired font or display various kinds of messages or the like to the user.

[0036] According to the embodiment, all of the fonts designated on the host computer 2 side are set on the printer 1 side and are substituted to preferential fonts which are preferentially used. The preferential fonts or the like are set by the operation panel 700. A processing procedure in this case will now be described with reference to a flowchart shown in FIG. 2 together with FIG. 1.

[0037] First, in step 1, the print data is derived from the host computer 2 and stored into the input buffer 4. In step 2, one command is read out from the input buffer 4 and supplied to the CPU 5. After that, in step 3, a check is made to see if the command which has been read in step 2 is a sheet delivery command or not. If NO, step 4 follows and a check is made to see if the command read out in step 2 is a command regarding the font selection or not. If NO in step 4, step 9 follows and a processing according to the command is executed and, after that, the processing routine is returned to step 2. If it is determined in step 4 that the command is the command regarding the font selection, step 5 follows and a check is made to see if a preferential font has been set in the operation panel 700 or not. If NO in step 5, step 8 follows and the font (hereinafter, referred to as a designated font) designated on the host computer 2 side is selected as it is and, after that, the processing routine is again returned to step 2. When it is determined in step 5 that the preferential font has been set, step 6 follows and the designated font is replaced to the preferential font and selected. When the font which has been designated as a preferential font is selected, step 7 follows and a check is made to see if the designated font exists in the font memory 6 or not. When such a font doesn't exist, step 8 follows and the designated font before it is replaced in step 6 is again selected. When it is decided in step 7 that the preferential font exists in the font memory 6, the processing routine is again returned to step 2. When it is decided in step 3 that the command is the sheet delivery command, step 10 follows and an output processing is executed and the output image stored in the bit map memory 8 is printed onto the print sheet 3 in step 11. After that, the above processing routine is finished.

[0038] (Second Embodiment)

[0039] The second embodiment of the invention will now be described with reference to FIGS. 3 and 4.

[0040] In the second embodiment, the same portions as those in the first embodiment mentioned above are designated by the same reference numerals in the diagrams and will be explained.

[0041] As will be obviously understood from FIG. 3, the second embodiment differs from the above first embodiment with respect to a point that a registration memory 10 to register and store which font is replaced to which font is added to the construction of FIG. 1, thereby enabling an arbitrary font to be replaced to an arbitrary font (hereinafter, an original font to be replaced is referred to as an original font and a font to which such an original font is replaced is referred to as a preferential font). The original font, the preferential font, and the like are set by the operation panel 700. A processing procedure in this instance will now be described with reference to a flowchart shown in FIG. 4 together with FIG. 3. A processing procedure in steps 1 to 5 in FIG. 4 is similar to that in steps 1 to 5 in FIG. 2 of the forgoing first embodiment. A processing procedure in steps 13 to 18 in FIG. 4 is similar to that in steps 6 to 11 in FIG. 2. When it is decided in step 5 that the preferential font is not set, the font (hereinafter, referred to as a designated font) designated on the host computer 2 side is selected. When it is decided in step 5 that the preferential font is designated, step 12 follows and a check is made to see if the original font which coincides with the designated font exists or not by referring to the registration memory 10. When it is decided in step 12 that the coincident original font doesn't exist, step 15 follows and the designated font is selected. When it is determined in step 12 that the coincident original font exists, step 13 follows and the preferential font corresponding to the coincident original font is selected. A subsequent processing procedure in steps 14 to 18 is similar to that in steps 7 to 11 in FIG. 2 of the first embodiment mentioned above.

[0042] Although each of the above embodiments relates to the fonts stored in the font memory 6 provided in the printer, the invention is not limited to such a case. Instead of referring to the font memory 6, by referring to a font card or font cartridge which is connected to the printer, the fonts other than the fonts provided in the printer can be used or their fonts can be also mixedly used. Although the memory has mechanically been divided, the above construction can be also realized by one memory. On the other hand, the preferential font or the like can be also set by a command from the outside instead of the operation panel. Although the example of the laser beam printer has been shown as an outputting apparatus in each of the above embodiments, the invention is not limited to such a case. Various kinds of printers such as LED printer, ink jet printer, and the like, or displays such as CRT, LCD, and the like can be also used.

[0043] (Third Embodiment)

[0044]FIG. 5 is a block diagram showing a practical construction of the printer control unit 701. In the diagram, reference numeral 11 denotes a host computer which supplies print information comprising print data, control codes, and the like to the printer control unit 701; 121 an input buffer for receiving the print information from the host computer 11 and storing; 122 a CPU to control the whole printer control unit 701; 123 an ROM in which operation processing procedures (programs regarding flowcharts in FIGS. 6, 8, and 9 and the like) of the CPU 122 have been stored; 124 an RAM which is used as a work area or the like of the CPU 122; 125 a page buffer memory to store the received data every page; and 126 a bit map memory to store an output image of one page. Each of the above input buffer 121, page buffer memory 125, and bit map memory 126 is also constructed by an RAM. Reference numeral 127 denotes a printer engine to actually print the output image; 128 a font memory to store various kinds of information of the fonts; and 129 a font card to store various kinds of information of the added fonts. Each of the font memory 128 and font card 129 is constructed by an ROM. Reference numeral 130 denotes a recording medium such as a paper to record the print result or the like. Reference numeral 700 denotes the operation panel for allowing the user to select a desired font or to display various kinds of messages or the like to the user.

[0045] According to the third embodiment, the existing font “font A” stored in the font memory 128 in the outputting apparatus is set into a selection-impossible state by the operation panel 700, thereby enabling “font B” in the font card 129 which is newly added to be selected in place of “font A”.

[0046] A processing procedure to set selection-possible/selection-impossible state of the font by the operation panel 700 will now be described with reference to the flowchart of FIG. 6 and FIG. 7. FIG. 7 shows a font table which is provided in the work area of the RAM 124 in FIG. 5 and stores the information indicating whether a font can be selected or not. A proper font is selected from the fonts registered in the font table as selectable fonts. Not only the internal fonts stored in the font memory 128 but also external memory media such as font card 129 and the like are registered as selectable fonts if such external memory media are attached into the LBP. That is, according to the embodiment, only the fonts provided in the outputting apparatus are set to the target fonts to be set into the selection-impossible state. The selection-possible/selection-impossible state of the font is set from the operation panel 700. In case of setting the selection-impossible font in step S21, step S22 follows. When no selectable font exists, the processing routine is finished. When a selectable font exists, the font which is set into the selection-impossible state is selected in step S23. Information indicating that such a font cannot be selected is registered into a font table in FIG. 7 in step S24. In the case where the font which cannot be selected is not set in step S21, step S25 follows. In the case where the font which has been set into the selection-impossible state is set into the selection-possible state, step S26 follows. If NO in step S25, the processing routine is finished. A check is made in step S26 to see if the number of fonts set into the selection-impossible state is equal to one or more or not. If YES in step S26, the fonts to be set into the selection-impossible state are selected in step S27 and the processing routine advances to step S28. If NO in step S26, the processing routine is finished. In step S28, the information indicating that such a font can be selected is registered into the font table. For instance, the font table of FIG. 7 shows a state in which “font A” is set into the selection-impossible state from the selection-possible state and that “font B” and “font C” in the font card can be selected.

[0047] A flow of the whole print data processings will now be described with reference to the flowchart shown in FIG. 8. First, the print data is derived from the host computer 11 and stored into the input buffer 121 (step S41). One command is read out from the input buffer 121 (step S42). A check is made to see if the command is a sheet delivery command or not (step S43). In case of the sheet delivery command, an output processing is executed (step S47) and the print data is printed (step S48). Specifically speaking, the data stored in the page buffer memory 125 every page is developed as a bit map in the bit map memory 126, an output image is formed, and the output image is supplied as a video signal to the printer engine 127. The print result is recorded on the recording medium 130. If NO in step S43, step S44 follows and a check is made to see if the command is a command regarding the font selection or not. If NO in step S44, step S45 follows and the command is analyzed and a processing corresponding to the command is executed. Practically speaking, the data stored in the input buffer 121 is stored into the page buffer memory 125 every page. When it is decided in step S44 that the command is a command regarding the font selection, step S46 follows and a font selection processing is executed. The processing routine is returned to step S42.

[0048] The font selection processing in step S46 will now be described in detail with reference to FIG. 9.

[0049] First, the font table formed temporarily in the work area in the RAM 124 is searched in step S51. When it is decided that there is no selectable font, no character can be printed. Therefore, the processing routine advances to step S52 and a warning is generated to the operation panel 700 and the processing routine is finished. When a selectable font exists in step S51, step S53 follows and a check is made to see if the designated font can be selected from the fonts which have been set into the selection-possible state in the font table shown in FIG. 7 or not. If YES in step S53, step S54 follows and a normal selection processing is executed in a manner similar to the conventional method. When the designated font cannot be found out in the selectable fonts, step S55 follows and a check is made to see if the designated font exists in the fonts which have been set into the selection-impossible state or not. If YES in step S55, step S56 follows and the font having the attribute that is nearest to the attribute of the above font is selected from the selectable fonts.

[0050] For instance, it is now assumed that “font A” in the font memory 128 cannot be selected and “font B” and “font C” in the font card 129 are loaded (namely, can be selectable) as shown in FIG. 7.

[0051] When “font A” is designated by the operation panel 700, no font can be selected in step S53, so that the processing routine advances to step S55. Since “font A” which has been set in the selection-impossible state is found out in step S55, the processing routine advances to step S56. When it is determined that the font having the attribute that is nearest to the attribute of “font A” in the selectable fonts is “font B”, “font B” is selected. For example, it is now assumed that the respective fonts have attributes as shown in FIG. 10. Those attributes have the priorities. The attribute 1 has the highest priority and the attribute 6 has the lowest priority. As for “font A”, “font B”, and “font C”, their attributes 1 to 4 are equal, the attribute 5 of only “font C” differs, and it is now assumed that the attributes 6 are set to the peculiar attributes such as numbers indicative of type styles such as Ming-style type, text-style type, and the like. When the attribute of “font A” and the attributes of “font B” and “font C” are sequentially compared in accordance with the order from the higher priority, they are equal up to the attribute 4, so that the candidate cannot be determined to one attribute. However, when looking at the attributes 5, the attribute of “font C” differs from the attribute of “font A” and is equal to the attribute of “font B”, so that “font B” is selected as a font having the attribute that is nearest to the attribute of “font A”. When only the font card “font C” is loaded into the apparatus, “font A” is replaced to “font C” and can be outputted. The attribute table shown in FIG. 10 is formed in the work area in the RAM 124 in a manner similar to the font table shown in FIG. 7. When the designated font cannot be found out in step S55, such a font is undefined and cannot be selected. Therefore, the designation of the font is ignored and step S57 follows and the font which has been set just before is used.

[0052] According to the embodiment as mentioned above, in the outputting apparatus which can set the selection-possible/selection-impossible state of the existing fonts, the existing font having the attribute which is most adaptive to the font selection information supplied from an external apparatus such as a host computer or the like can previously be set into the selection-impossible state. In this case, on the assumption that no selection-impossible font exists, by executing a processing to select the font having the attribute that is nearest to the supplied font selection information from the fonts other than such a selection-impossible font, the newly added font can be selected in place of the existing font which has been set into the selection-impossible state.

[0053] In the embodiment, the priorities are given to the attributes and the attributes are sequentially compared in accordance with the order from the higher priority. When only one candidate is found out as a font, such a font is defined as a font having the nearest attribute. However, it is also possible to use another defining method such that a font in which the number of coincident attributes is the largest is set to a font having the nearest attribute, or the like.

[0054] In the embodiment, the font is designated by the operation panel. However, the attribute of the font can be also designated. On the other hand, the font attribute can be also designated by a command.

[0055] In the above embodiment, no warning is generated at the stage to set the font into the selection-possible/selection-impossible state. However, it will be obviously understood that no correct data can be outputted in the case where in spite of the fact that a font card or the like is not loaded, all of the internal fonts are set into the selection-impossible state or the like. Therefore, a warning can be also generated at such a time point.

[0056] In the above embodiment, the selection-possible/selection-impossible state of the font is set by the operation panel. However, such a setting can be also performed by a command.

[0057] In case of performing a down-loading operation of fonts such as registration of external characters or the like from the host computer, it is also possible to construct in a manner such that the setting of the selection-impossible state is cancelled to thereby enable the down-loading of the font to be executed, and when the font is again set into the selection-possible state, the down-loaded font can be used.

[0058] In the case where an external character is registered in a certain font and such a font is set into the selection-impossible state, even if only the information of the external character is left, it is meaningless. Therefore, the information of the external character accompanied with such a font can be also erased.

[0059] The present invention can be also applied to a system comprising a plurality of apparatuses or to an apparatus comprising one equipment. The invention can be also applied to the case where the invention is accomplished by supplying a program to a system or an apparatus. 

What is claimed is:
 1. An outputting apparatus comprising: memory means for storing designation information to designate a selection-impossible font from a plurality of fonts; and selecting means for selecting the font which is most adaptive from the fonts other than said selection-instructed font in accordance with an input of selection instruction information to instruct so as to select the selection-impossible font which is designated by said designation information stored in said memory means.
 2. An apparatus according to claim 1, wherein said plurality of fonts include fonts provided in said apparatus and fonts which are supplied from an outside.
 3. An apparatus according to claim 1, wherein said designation information is supplied from an outside.
 4. An apparatus according to claim 1, wherein said selection instruction information is supplied from an outside.
 5. An apparatus according to claim 1, wherein said selecting means has comparing means for comparing attribute information of the font instructed by said selection instruction information and attribute information of the fonts other than said instructed font, and a font having attribute information that is nearest to the attribute information of the font instructed by said selection instruction information is selected from the fonts other than the font instructed by the selection instruction information.
 6. An outputting method comprising the steps of: storing designating information to designate a selection-possible font from a plurality of fonts; and selecting a font which is most adaptive from the fonts other than said selection-instructed font in accordance with an input of selection instruction information to instruct so as to select the selection-impossible font which is designated by said designation information stored.
 7. A method according to claim 6, wherein said plurality of fonts include fonts provided in an outputting apparatus and fonts which are supplied from an outside.
 8. A method according to claim 6, wherein said designation information is supplied from an outside.
 9. A method according to claim 6, wherein said selection instruction information is supplied from an outside.
 10. A method according to claim 6, wherein said font selecting step, attribute information of the font instructed by said selection instruction information is compared with attribute information of the fonts other than said instructed font, and a font having attribute information that is nearest to the attribute information of the font instructed by said selection instruction information is selected from the fonts other than the font instructed by said selection instruction information. 